package com.test.lab.mybatis;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by zhongdifeng on 2017/8/10.
 */
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MappingValueAnno {

    /**
     * 原有属性
     * @return
     */
    String fromField() default "";

    /**
     * 默认值
     * @return
     */
    String defaultValue() default "";

    /**
     * Long转换成Integer
     *  处理历史javabean问题
     * @return
     */
    boolean longToInteger() default false;
}